import request from '@/utils/request.js';
import {download, toFormData, checkDownloadRes} from '@/utils/common.js';

/**
 * 取毕业年份
 */
export async function selectGraduationYear() {
  const res = await request.get('/admin/employment/statistic/schoolInfo/graduationYear/selectlist');
  if (res.data.code === 200) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.msg));
}


export async function selectCurrentYear() {
  const res = await request.get('/admin/employment/statistic/schoolInfo/current/year');
  if (res.data.code === 200) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.msg));
}
